package com.lucanjun.cn.springboot.multipledatasources.common.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author lucanjun
 * @version 1.0.0
 * @title HttpResultCodeEnum
 * @create 2024-12-19 16:55:19
 * @description 统一响应结果集状态枚举类
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "HttpResultCodeEnum", description = "统一响应结果集状态枚举")
public enum HttpResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(400, "失败"),
    GET_RSA_PUBLIC_KEY_ERROR(400, "获取公钥失败！"),
    GET_RSA_PRIVATE_KEY_ERROR(400, "获取私钥失败！"),
    RSA_ENCRYPT_ERROR(400, "加密失败！"),
    RSA_DECRYPT_ERROR(400, "解密失败！"),
    RSA_SIGN_ERROR(400, "签名失败！"),
    RSA_VERIF_SIGN_ERROR(400, "验签失败！"),
    ;

    private Integer code;
    private String message;

}
